//
//  SearchCollectionViewCell.m
//  GentlemanAnime
//
//  Created by dlios on 15-6-29.
//  Copyright (c) 2015年 lanou3g.com 蓝欧科技. All rights reserved.
//

#import "SearchCollectionViewCell.h"

@implementation SearchCollectionViewCell

- (void)dealloc
{
    [_nameLabel release];
    [super dealloc];
}

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(5, 0, self.contentView.frame.size.width, 30)];
        self.contentView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.nameLabel];
        self.nameLabel.textAlignment = NSTextAlignmentCenter;
        self.nameLabel.textColor = [UIColor colorWithRed: arc4random() % 256/255.0 green:arc4random()%256/255.0 blue:arc4random()%256/255.0 alpha:1];
        self.nameLabel.font = [UIFont systemFontOfSize:13];
        [self.nameLabel release];
    }
    return self;
}










/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
